<div class="container">
    <div class="row vertical-center-row">
        <div class="well">
<?php
/* @var $this LimitationsController */
/* @var $model Limitations */

$this->breadcrumbs=array(
	'Limitations'=>array('index'),
	'Manage',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#limitations-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>


<h4>Manage Limitations</h4>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'limitations-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'name',
		'description',
		'by_byte_in',
		'by_byte_out',
		'by_byte_total',
		'by_uptime',
		//'updtime',
		//'updby',
		
		array(
			'class'=>'CButtonColumn',
		),
	),
)); 

echo "<center>".CHtml::button('Create limitations', array('onclick' => 'js:document.location.href="limitations/create"'));?>

		</div>
	</div>
</div>
